package com.qx.chat.system.entity;

import java.io.Serializable;
import java.util.Date;

public class Entity implements Serializable{

	private static final long serialVersionUID = 8556156559004229402L;
	
	private Date createTime;
	
	private Date updateTime;
	
	private String createUserId;
	
	private String createUserName;
	
	private String createDeptId;
	
	private String createDeptName;
	
	private String updateUserId;
	
	private String updateUserName;
	
	private Integer isDelete;

	public void initData(User user,Dept dept){
		this.setCreateDeptId(dept.getId());
		this.setCreateDeptName(dept.getName());
		this.setCreateTime(new Date());
		this.setCreateUserId(user.getId());
		this.setCreateUserName(user.getNickname());
		this.setIsDelete(0);
		this.setUpdateTime(new Date());
		this.setUpdateUserId(user.getId());
		this.setUpdateUserName(user.getNickname());
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}
	public String getCreateUserName() {
		return createUserName;
	}
	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}
	public String getCreateDeptId() {
		return createDeptId;
	}
	public void setCreateDeptId(String createDeptId) {
		this.createDeptId = createDeptId;
	}
	public String getCreateDeptName() {
		return createDeptName;
	}
	public void setCreateDeptName(String createDeptName) {
		this.createDeptName = createDeptName;
	}
	public String getUpdateUserId() {
		return updateUserId;
	}
	public void setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
	}
	public String getUpdateUserName() {
		return updateUserName;
	}
	public void setUpdateUserName(String updateUserName) {
		this.updateUserName = updateUserName;
	}
	public Integer getIsDelete() {
		return isDelete;
	}
	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}
}
